//
//  SGHttpTool.h
//  ThatOne
//
//  Created by 赵士新 on 15/9/18.
//
//

#import <Foundation/Foundation.h>

typedef void(^HttpSuccess)(id json);
typedef void(^HttpFailure)(NSError* error);

@interface SGHttpTool : NSObject

+(void)postWithURL:(NSString*)url params:(NSDictionary*)params success:(HttpSuccess)success failure:(HttpFailure)failure;

+(void)getWithURL:(NSString*)url params:(NSDictionary*)params success:(HttpSuccess)success failure:(HttpFailure)failure;

@end
